aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/[username]/request/+page.server.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/(app)/[username]/request/+page.server.js')
0 files changed, 0 insertions, 0 deletions
> 2022-06-14 16:01:21 -0500 committer Adrien Hopkins <[email protected]> 2022-06-14 16:01:21 -0500 Moved conversion fee calculation to a single file per currency' href='/coinos-server.git/commit/routes/liquid/conversionFee.js?h=retransmit&id=33338d09d6cb03f089c1f053c81503c0f8c11dbc'>33338d09 ^
1
2
3
4
5
6
7
8
9
10
11
12



                                                                                           
                                                                              



                                                                  
                                       

                                                      
// Code for the conversion fee
// This is in a separate file so that the same function can be used by ./send and ./receive

const conversionFeeMultiplier = 0.01;
const conversionFeeReceiver = "coinosfees";  // account that receives the fees

/**
 * Returns the fee you have to pay for withdrawing 'amount' L-BTC.
 */
function computeConversionFee(amount) {
  return Math.floor(amount * conversionFeeMultiplier);
}